local CSGuildWarMemberInfo = class("CSGuildWarMemberInfo")


function CSGuildWarMemberInfo:ctor()
    self._name = ""
    self._matchNum = 0
    self._winCount = 0
    self._loseCount = 0
    self._score = 0
end

function CSGuildWarMemberInfo:read(pbData)
    if not pbData then
        return
    end

    self._name = rawget(pbData, "name") or ""
    self._uid = rawget(pbData, "uid") or ""
    self._matchNum = rawget(pbData, "matchNum") or 0
    self._winCount = rawget(pbData, "win") or 0
    self._loseCount = rawget(pbData, "lose") or 0
    self._score = rawget(pbData, "score") or 0
end

function CSGuildWarMemberInfo:getName()
    return self._name
end

function CSGuildWarMemberInfo:getMatchNum()
    return self._matchNum
end

function CSGuildWarMemberInfo:getWinCount()
    return self._winCount
end

function CSGuildWarMemberInfo:getLoseCount()
    return self._loseCount
end

function CSGuildWarMemberInfo:getScore()
    return self._score
end

function CSGuildWarMemberInfo:setIndex(index)
    self._index = index
end

function CSGuildWarMemberInfo:getIndex(index)
    return self._index
end

return CSGuildWarMemberInfo